package com.kh.samr.entity.expert;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kh.samr.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 学术评审信息
 *
 * @author Harry
 * @date 2020/12/28
 */
@ApiModel(description = "学术评审信息")
@Table(name = "ep_academic_review")
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AcademicReview extends BaseEntity {
	
	private static final long serialVersionUID = 5701459322481372305L;
	
	/**
	 * 评审内容
	 */
	@ApiModelProperty(value = "评审内容", readOnly = true)
	@Column(length = 200)
	private String reviewContent;
	
	/**
	 * 评审委托机构
	 */
	@ApiModelProperty(value = "评审委托机构", readOnly = true)
	@Column(length = 100)
	private String delegation;
	
	/**
	 * 起始时间
	 */
	@ApiModelProperty(value = "起始时间", readOnly = true, example = "yyyy-MM-dd")
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date startingDate;
	
	/**
	 * 完成时间
	 */
	@ApiModelProperty(value = "完成时间", readOnly = true, example = "yyyy-MM-dd")
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date finishDate;
}
